<template>
  <div>
    <input type="text" v-model="title" />
    <button @click="postData">提交</button>
  </div>
</template>

<script setup>
import { ref } from "vue";
import request from "../utils/request";

const title = ref();

const postData = async () => {
  await request.saveTodoItem({
    title:title.value,
    picurls: "https://t7.baidu.com/it/u=2621658848,3952322712&fm=193&f=GIF",
  });
};
</script>

<style>
</style>